<?php

class ConstService {
	
	//Special category
	const CATEGORY_BID_PACK_NAME = "Promo Bid Pack";
	const CATEGORY_PROMO_BID_PACK_ID = 2;
	const CATEGORY_PROMO_LIMIT_REMOVAL_ID = 4;
	const CATEGORY_GIFT_CARDS = 12;
	const CATEGORY_BIDPACK_AUCTIONS = 56;
	//prime
	const GRADE_TYPE_BID_PACK = 1 ;
	const GRADE_TYPE_BUY_AUCTION = 2 ;
	const GRADE_TYPE_BUY_IT_NOW = 3 ;
	
	const GRADE_TYPE_ADMIN = 4 ;
	const GRADE_TYPE_ADMIN_TAKE_AWAY = 5 ;
	
	const GRADE_ID_NORMAL = 0;
	const GRADE_ID_PRIME = 1 ;
	
	const LIMIT_REMOVAL_ID = 4;
	const PROMO_BID_PACK_ID = 2;
	const CUSTOMER_GRADE_EXPIRED_TIME = 31536000;
	
	const CUSTOMER_STATUS_ENABLE = 1;
	const CUSTOMER_STATUS_DELETE = 2;
	
	//auctions
	const AUCTIONS_UPCOMING_NUM = 0;
	const AUCTIONS_LIVE_NUM = 1;
	const AUCTIONS_Closed_NUM = 2;
	const AUCTIONS_ACTIVE_NUM = 1;
	const AUCTIONS_EXPIRED_NUM = 2;
	const AUCTIONS_CANCELLED_NUM = 3;
	const AUCTIONS_TYPE_PURCHASE = 1;
	const AUCTIONS_TYPE_BONUS = 2;
	const AUCTIONS_SINGLE_NUM = 1;
	const AUCTIONS_AUTO_NUM = 2;
	const AUCTIOMS_ENABLE_NUM = 1;
	const ENABLE = 1;
	const DISABLE = 0;
	const BUY_IT_NOW_EXPIRED_TIME = 7200;
	const AUCTIONS_EXPIRES_TIME_LIMIT = 864000;
	
	/**
	 * order
	 *
	 */
	const ORDER_UNPAID = 1;
	const ORDER_PENDING = 2;
	const ORDER_CLOSED = 3;
	
	const ORDER_PAID = 4;
	const ORDER_PROCESSING_BUT_NOT_DELIVERED = 5;
	const ORDER_DELIVERED = 6;
	const ORDER_ON_HOLD = 7;
	
	const ORDER_SUCCESS = 8;
	const ORDER_CANCELLED = 9;
	const ORDER_RETURNED = 10;
	
	const NO_IMAGE = "images/layout/default/layout/front/no_image.jpg";
	
	const ORDER_TYPE_0 = "Incomplete";
	const ORDER_TYPE_1 = "Buy Auction";
	const ORDER_TYPE_2 = "Buy It Now";
	const ORDER_TYPE_INCOMPLETE = 0;
	const ORDER_TYPE_BUY_AUCTION = 1;
	const ORDER_TYPE_BUY_IT_NOW = 2;
	
	
	const AUCTIONS_STATUS_UPCOMING_NUM = 0;
	const AUCTIONS_STATUS_ACTIVE_NUM = 1;
	const AUCTIONS_STATUS_EXPIRED_NUM = 2;
	const AUCTIONS_INCREMENT_TIME = 20;
	
	const AUCTIONS_EXPIRES_TIME_3 = 120;
	const AUCTIONS_EXPIRES_TIME_10 = 600;
	
	//bid errorMessages
	
	const BID_MESSAGE_LIMIT_DAY = 'You are unable to bid because you have reached your auction limit. You may only win or be currently winning a maximum of 50 auctions or 25 promo bid auctions in a 28 day period. You may also only win 1 of the same auction over $285 per 28 day period, and only 1 single auction over $1000 per 28 day period.';
	const BID_MESSAGE_LIMIT_28 	= 'You are unable to bid because you have reached your auction limit. You may only win or be currently winning a maximum of 50 auctions or 25 promo bid auctions in a 28 day period. You may also only win 1 of the same auction over $285 per 28 day period, and only 1 single auction over $1000 per 28 day period.';
	
	const AUCTIONS_LIMIT_DAY = 86400;
	const AUCTIONS_LIMIT_MONTH_DAY = 2419200;
	
	const TYPE_TODAY = 1;
	const TYPE_LAST_7_DAY = 2;
	const TYPE_TOTALLY = 3;
	
	
	const AUTO_BID_CRONJOB_DISABLE = 2;
	const AUCTION_COMING_END_TIME = 1800;
	
	//bid log settting
	const BIB_LOG_TIME_LIMIT = 5;
	
	
	//Bid Value
	const BID_VALUE_BUY_IT_NOW = 0.5;
	const BID_VALUE_BUY_AUCTION = 0.65;

	//Bid Pack
	const REAL_BIDS_EXPIRED_TIME = 4320;
	const VOUCHER_BIDS_EXPIRED_TIME = 8640;
	
	//Bid Type
	const BID_TYPE_REAL_BIDS = 1;
	const BID_TYPE_VOUCHER_BIDS = 2;
	
	const SCOMING_TIME = 900;
	
	const LANDING_BUY_BID_PACK_DEADLINE = 480;
	
	const HEADLINE_MESSAGE = 'headline_message';
}

?>